#include <iostream>
#include <fstream>
#include <stdlib.h>

using namespace std;

int main()
{
  int i,j;
  ofstream file;
  file.open("test.txt");
  

  assert( file.is_open() );
  
  // printf("RAND_MAX: %d", RAND_MAX);
  srand((unsigned)time(NULL));
  for(i = 0; i < 10000; i++){
    j = rand();
    // printf("%d\t", j);
    file<<j<<std::endl;
    
  }

  file.close();

  return 1;
}
